﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using VonaJobs.BLL;
using VonaJobs.DAL.DAO;

namespace VonaJobs.UI.Jobs
{
    public partial class EmployerRegFrm : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }
        public void CreateEmpUser(object sender,EventArgs eventArgs)
        {

            try
            {
                EmployerUser employerUser=new EmployerUser();
                EmployerUserManager employerUserManager=new EmployerUserManager();

                employerUser.Name = txtname.Value;
                employerUser.Phone = txtPhone.Value;
                employerUser.Email = txtemail.Value;
                employerUser.Password = txtpassword.Value;
                string msg=employerUserManager.CreateNewEmploye(employerUser);

            }
            catch (Exception)
            {
                
                throw;
            }
        }
    }
}